const number = 9
let str = ``
for (let i = 1; i <= number; i++) {
  for (let j = 1; j <= i; j++) {
    str += `${j}x${i}=${i * j} `
    if (i * j < 10) str += ' '
  }
  str += '\n'
}
console.log(str)
